package com.aode.music.service.music;

import com.aode.common.bean.response.Music;
import com.aode.common.bean.web.Page;
import com.aode.common.bean.web.Result;
import com.aode.common.header.Header;
import com.aode.common.url.UrlGather;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Query;

public interface MusicService {
    @Headers(Header.JSON_HEADER)
    @GET(UrlGather.GET_MUSIC_URL)
    Observable<Result<Page<Music>>> getMusic(@Query("pageNum")Integer pageNum, @Query("pageSize")Integer pageSize, @Query("search")String search);

    @Headers(Header.JSON_HEADER)
    @GET(UrlGather.GET_MUSIC_URL)
    Observable<Result<Page<Music>>> getMusic1(@Query("pageNum")Integer pageNum, @Query("pageSize")Integer pageSize, @Query("search")String search);
}
